package com.itheima.neibulei;

public  class NeiBuLei1 {
     void eat(){

     };
}

class Demo12 {
    public static void main(String[] args) {
        NeiBuLei1 nbl=new NeiBuLei1(){
            @Override
            void eat() {
                System.out.println("猫吃鱼");
            }
        };
        nbl.eat();
    }
    void thod(){}
}
class It{
    public static void main(String[] args) {

    }
}